﻿using HttpLib.Builder;
using System;

namespace HttpLib
{
    public class Http
    {

        public static Http Instance { get; } = new Http();

        public RequestBuilder Get(string url)
        {
            return new RequestBuilder(url, HttpVerb.Get);
        }

        public RequestBuilder Head(string url)
        {
            return new RequestBuilder(url, HttpVerb.Head);
        }

        public RequestBuilder Post(string url)
        {
            return new RequestBuilder(url, HttpVerb.Post);
        }

        public RequestBuilder Put(string url)
        {
            return new RequestBuilder(url, HttpVerb.Put);
        }

        public RequestBuilder Patch(string url)
        {
            return new RequestBuilder(url, HttpVerb.Patch);
        }

        public RequestBuilder Delete(string url)
        {
            return new RequestBuilder(url, HttpVerb.Delete);
        }
    }
}
